//
//  NSDictionary+Plist.m
//  JQKit
//
//  Created by JQZ on 2018/1/9.
//  Copyright © 2018年 JQZ. All rights reserved.
//

#import "NSDictionary+Plist.h"
#import "NSData+Plist.h"

@implementation NSDictionary (Plist)

+ (NSDictionary *)dictionaryFromPlistData:(NSData *)plistData error:(out NSError **)error
{
    NSDictionary *dictionaryParsed = nil;
    if (plistData) {
        dictionaryParsed = [plistData propertyListFromPlistDataWithError:error];
    }
    
    return dictionaryParsed;
}

- (NSData *)propertyListDataWithError:(out NSError **)error
{
    return [NSData dataWithPropertyList:self error:error];
}

@end
